package com.bsoft.gol.hcs.enumcase;

/**
 * @Author: lanyu
 * @Description: 检查指标枚举
 * @Date: create in 2022/8/4 9:42
 */
public enum InspectIndexEnum {

    IMAGE_DIAGNOSIS("0001", "3","影像诊断"),
    EXAM_FINDING("0002","3", "检查所见"),
    YIN_YANG("0003","2", "阴阳性");

    private final String code;

    private final String resultCode;

    private final String name;

    InspectIndexEnum(String code, String resultCode,String name) {
        this.code = code;
        this.resultCode = resultCode;
        this.name = name;
    }

    public static InspectIndexEnum getEnumByKey(String code) {
        for (InspectIndexEnum temp : InspectIndexEnum.values()) {
            if (temp.getCode().equals(code)) {
                return temp;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getResultCode() {
        return resultCode;
    }

    public String getName() {
        return name;
    }
}
